<?php
// +----------------------------------------------------------------------
// | Yotaku shop
// +----------------------------------------------------------------------
// | Copyright (c) 2016 http://www.yotaku.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: Creatint <creatint@163.com> <http://creatint.yotaku.cn>
// +----------------------------------------------------------------------
namespace Common\Model;
use Think\Model;
class ConfigModel extends Model{
    public $err =   null;
    public function lists($param){

        $map    =   $param?:array("status"=>1);

        $data   =   $this->where($map)->field("type,name,value")->select();

        if(!empty($data)){
            return $data;
        }else{
            trace("数据为空,文件：" . __FILE__ . "  行号：" . __LINE__ , "数据库",'debug',true);
            return false;
        }
    }
}